package com.guigu.tms.commons.aggregation.feign;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.aggregation.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "tms-aggregation",path = "/aggregation/order",contextId = "order1")
public interface OrderFeignClient {
    @GetMapping("getOrderById")
    Order getOrderById(@RequestParam String id);

    @PostMapping("getOrders/{num}/{size}")
    PageInfo<Order> getOrders(@RequestBody Order order, @PathVariable("num") Integer num, @PathVariable("size") Integer size);
}
